<template>
  <div class="card-title flex items-center justify-between  text-15px mb-5px relative">
    <div class="title-left relative">
      <div class="bg"></div>
      <div class="text !ml-10px font-bold">
        {{ props.title }}
      </div>
    </div>
    <div class="title-extra">
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  title: {
    type: String,
    default: '标题'
  }
})
</script>
<style lang="scss" scoped>
.card-title{
    border-bottom: 1px solid #E9E9F6;
    padding-bottom: 12px;
}
.bg{
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: #126CFF;
    left: 0;
    top: 0;
}
.title-extra{
    position: absolute;
    right: 0;
}
</style>
